<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单管理</title>
<link  type="text/css" rel="stylesheet"  href="../dt/css/styles.css"/>
<link  type="text/css" rel="stylesheet"  href="../dt/css/index.css"/>
<script  src="../dt/js/jquery-1.7.2.js"></script>
<!-- 动态菜单JS -->
<script type="text/javascript"  src="../dt/js/menu.js"></script>
</head>
<body>
	<div class="container">
 <div class="cont-top">
  <div class="companyname">甄氏五谷香</div>
  <div class="cont-top-rg">
   <ul class="advanced-menu">
    <li>
     <div class="top-search">
      <div class="t-s-l">
      </div>
      <div class="t-s-l">
      <a href="/dt/outs.do">退出</a>
      </div>
     </div>
    </li>
    <li class="default" style="position:relative;">
     <span class="user"><img src="../dt/img/user.png"></span>
     <a  href="#" class="special">${name }<i><img src="../dt/img/xl.png"> </i></a>
     <div class="drop-down-wrap" style="width:180px;left:15px;display: none;">
      <div class="drop-down">
       <span class="triangle-border"></span>
       <span class="triangle-bg"></span>
       <ul class="del-ul">
        <li><a href="#" class="hot">甄氏五谷香</a></li>
        <li><a href="#">${name }</a></li>
       </ul>
      </div>
     </div>
    </li>    
   </ul>
  </div>
 </div>
 <div class="left-menu" style="height:949px;">
  <div class="menu-list">
   <ul>
    <li class="menu-list-01" >
     <a href="/dt/que.do?boo=true">
     <p class="fumenu">库房管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
    
    <li class="menu-list-02">
     <a  href="/dt/ckgl.do">
     <p class="fumenu">产品管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
    
    <li class="menu-list-01" >
    <a href="/dt/queryList.do?isQuery=true">
     <p class="fumenu">订单管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
    
    <li class="menu-list-02">
     <a href="/dt/queryFinance.do">
     <p class="fumenu">财务管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
    <li class="menu-list-02">
    <a href="/dt/admin.do">
     <p class="fumenu">员工管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
      <li class="menu-list-02">
     <a href="/dt/queryCompany.do">
     <p class="fumenu">交易管理</p>
     <img class="xiala" src="../dt/img/xiala.png" />
     </a>
    </li>
   </ul>
  </div>
 </div>
 
 <div class="right-menu">
  <div class="main-hd">
   <div class="page-teb" >
    <div class="l-tab-links">
     <ul style="left:0;">
      <li class="l-select">
       <a href="/dt/queryFinance.do?goon=true" style="padding:0 25px;">首页</a>
      </li>
      <li class="l-select">
       <a href="#">订单管理</a>
      </li>
     </ul>
    </div>

    <div class="l-tab-content" style="background:#fff;">
     <div class="tab-content-item">
      <div class="home">
      <!--订单管理   开始-->
        <div class="ddgl-box">
         <div class="ddgl-list">
          <div class="dd-fl">订单管理</div>
          <div class="dd-rg">
          	<form action="/dt/queryList.do">
           <div class="rg-01"> 
           		<input type="hidden" value="true" name="isQuery"/>
	            过滤
	             <select class="dd-sel" name="orderState">
	              <option <c:if test='${i == 2}'>selected</c:if>>已支付</option>
	              <option <c:if test='${i == 1}'>selected</c:if>>已完成</option>
	              <option <c:if test='${i == 3}'>selected</c:if>>已取消</option>
	             </select>
	          
	         </div>
            <div class="rg-01"> 
              <button type="submit">提交</button>
            </div>
             </form>
          </div>
         </div>
         <div class="dd-list-top">
          <div class="dd-cart">
           <div class="column t-checkbox">
            <div class="cart-checkbox">
             <input type="checkbox" class="jdcheckbox" >
             全选
            </div>
            
           </div>
           <div class="column t-goods" >商品</div>
           <div class="column tbh" >订单编号</div>
           <div class="column t-props"> </div>
           <div class="column t-price">单价 </div>
           <div class="column t-quantity">数量 </div>
           <div class="column t-sum">小计</div>
           <div class="column t-quantity">状态</div>
           <div class="column t-action"> 操作</div>
           <div class="column t-quantity">操作</div>
          </div>
          <div class="cart-list">
           <div class="cart-item-list">
            <div class="cart-tbody">
             <div class="shop">
              <div class="cart-checkbox">
               <input type="checkbox" class="jdcheckbox"> 
              </div>
              <span class="shop-title">
               <a href="#" class="shop-name">甄氏五谷香</a>
              </span>
               <div class="shop-extra">已免运费</div>
             </div>
            </div>
        	<c:forEach items="${queryList.list}" var="query">
           <div class="item-list">
            <div class="tiem-last">
           <!-- 增加列表数量-->
             <div class="item-form">
              <div class="cell t-checkbox">
               <div class="cart-checkbox">
                <input type="checkbox" class="jdcheckbox">
               </div>
              </div>
              
              <div class="cell p-goods">
               <div class="goods-item">
                <div class="p-img">
                 <a href="#" class="j-aa"><img src="../dt/img/kf02.png"></a>
                </div>
                <div class="item-msg">
                 <div class="p-name">
                  <a href="#">${query.goodName }</a> 
                 </div>
                </div>
               </div>
              </div>
              <div class="cell tbh">${query.orderNumber }</div>
              <div class="cell t-price">${query.goodPrice }</div>              
              <div class="cell t-quantity">${query.goodNumber }</div>
              <div class="cell t-sum">${query.goodPrice * query.goodNumber}</div>
              <div class="cell t-quantity">${query.orderState }</div>
              <div class="cell t-action">
                <c:if test="${query.orderState == '已支付' }">
               		<a href="/dt/con.htm?orderId=${query.id }">发货</a>
             	 </c:if>
             	 <c:if test="${query.orderState == '已取消' }">
               		<a href="/dt/dispose.do?orderId=${query.id }">处理退货订单</a>
             	 </c:if>
              </div>
              <div class="cell t-quantity"> 
               <c:if test="${query.orderState == '已完成' }">
             		 <a href="/dt/addLogistics.htm?orderId=${query.id }">填写中途物流信息</a>
               </c:if>
                <c:if test="${query.orderState != '已完成' }">
                	--
                </c:if>
              </div>
             
             </div>             
             </div>
           </div>   
            </c:forEach>        
           </div>
           </div>           
           </div>
          </div>
         </div>
        </div>
        
      <!--订单管理   结束-->
      </div>      
     </div>
    </div>
   </div>
  </div>
 </div>
</div>
</body>
</html>